package com.ran.servers.protobuf;

public final class SocketGameProtocol {
  private SocketGameProtocol() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * <pre>
   * </pre>
   *
   * Protobuf enum {@code RequestCode}
   */
  public enum RequestCode
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <code>RequestNone = 0;</code>
     */
    RequestNone(0),
    /**
     * <pre>
     *用户
     * </pre>
     *
     * <code>User = 1;</code>
     */
    User(1),
    /**
     * <pre>
     *心跳
     * </pre>
     *
     * <code>State = 2;</code>
     */
    State(2),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>RequestNone = 0;</code>
     */
    public static final int RequestNone_VALUE = 0;
    /**
     * <pre>
     *用户
     * </pre>
     *
     * <code>User = 1;</code>
     */
    public static final int User_VALUE = 1;
    /**
     * <pre>
     *心跳
     * </pre>
     *
     * <code>State = 2;</code>
     */
    public static final int State_VALUE = 2;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static RequestCode valueOf(int value) {
      return forNumber(value);
    }

    public static RequestCode forNumber(int value) {
      switch (value) {
        case 0: return RequestNone;
        case 1: return User;
        case 2: return State;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<RequestCode>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        RequestCode> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<RequestCode>() {
            public RequestCode findValueByNumber(int number) {
              return RequestCode.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return SocketGameProtocol.getDescriptor().getEnumTypes().get(0);
    }

    private static final RequestCode[] VALUES = values();

    public static RequestCode valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private RequestCode(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:RequestCode)
  }

  /**
   * <pre>
   *操作
   * </pre>
   *
   * Protobuf enum {@code ActionCode}
   */
  public enum ActionCode
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <code>ActionNone = 0;</code>
     */
    ActionNone(0),
    /**
     * <pre>
     *注册
     * </pre>
     *
     * <code>Logon = 1;</code>
     */
    Logon(1),
    /**
     * <pre>
     *登录
     * </pre>
     *
     * <code>Login = 2;</code>
     */
    Login(2),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>ActionNone = 0;</code>
     */
    public static final int ActionNone_VALUE = 0;
    /**
     * <pre>
     *注册
     * </pre>
     *
     * <code>Logon = 1;</code>
     */
    public static final int Logon_VALUE = 1;
    /**
     * <pre>
     *登录
     * </pre>
     *
     * <code>Login = 2;</code>
     */
    public static final int Login_VALUE = 2;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ActionCode valueOf(int value) {
      return forNumber(value);
    }

    public static ActionCode forNumber(int value) {
      switch (value) {
        case 0: return ActionNone;
        case 1: return Logon;
        case 2: return Login;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<ActionCode>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        ActionCode> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<ActionCode>() {
            public ActionCode findValueByNumber(int number) {
              return ActionCode.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return SocketGameProtocol.getDescriptor().getEnumTypes().get(1);
    }

    private static final ActionCode[] VALUES = values();

    public static ActionCode valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private ActionCode(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:ActionCode)
  }

  /**
   * <pre>
   *交互返回值
   * </pre>
   *
   * Protobuf enum {@code ReturnCode}
   */
  public enum ReturnCode
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <code>ReturnNone = 0;</code>
     */
    ReturnNone(0),
    /**
     * <pre>
     *状态码
     * </pre>
     *
     * <code>Succeed = 1;</code>
     */
    Succeed(1),
    /**
     * <code>Fail = 2;</code>
     */
    Fail(2),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>ReturnNone = 0;</code>
     */
    public static final int ReturnNone_VALUE = 0;
    /**
     * <pre>
     *状态码
     * </pre>
     *
     * <code>Succeed = 1;</code>
     */
    public static final int Succeed_VALUE = 1;
    /**
     * <code>Fail = 2;</code>
     */
    public static final int Fail_VALUE = 2;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ReturnCode valueOf(int value) {
      return forNumber(value);
    }

    public static ReturnCode forNumber(int value) {
      switch (value) {
        case 0: return ReturnNone;
        case 1: return Succeed;
        case 2: return Fail;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<ReturnCode>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        ReturnCode> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<ReturnCode>() {
            public ReturnCode findValueByNumber(int number) {
              return ReturnCode.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return SocketGameProtocol.getDescriptor().getEnumTypes().get(2);
    }

    private static final ReturnCode[] VALUES = values();

    public static ReturnCode valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private ReturnCode(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:ReturnCode)
  }

  /**
   * Protobuf enum {@code HeartBeat}
   */
  public enum HeartBeat
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <code>Alive = 0;</code>
     */
    Alive(0),
    /**
     * <code>Death = 1;</code>
     */
    Death(1),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>Alive = 0;</code>
     */
    public static final int Alive_VALUE = 0;
    /**
     * <code>Death = 1;</code>
     */
    public static final int Death_VALUE = 1;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static HeartBeat valueOf(int value) {
      return forNumber(value);
    }

    public static HeartBeat forNumber(int value) {
      switch (value) {
        case 0: return Alive;
        case 1: return Death;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<HeartBeat>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        HeartBeat> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<HeartBeat>() {
            public HeartBeat findValueByNumber(int number) {
              return HeartBeat.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return SocketGameProtocol.getDescriptor().getEnumTypes().get(3);
    }

    private static final HeartBeat[] VALUES = values();

    public static HeartBeat valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private HeartBeat(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:HeartBeat)
  }

  public interface MainPackOrBuilder extends
      // @@protoc_insertion_point(interface_extends:MainPack)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.RequestCode requestCode = 1;</code>
     */
    int getRequestCodeValue();
    /**
     * <code>.RequestCode requestCode = 1;</code>
     */
    SocketGameProtocol.RequestCode getRequestCode();

    /**
     * <code>.ActionCode actionCode = 2;</code>
     */
    int getActionCodeValue();
    /**
     * <code>.ActionCode actionCode = 2;</code>
     */
    SocketGameProtocol.ActionCode getActionCode();

    /**
     * <code>.ReturnCode returnCode = 3;</code>
     */
    int getReturnCodeValue();
    /**
     * <code>.ReturnCode returnCode = 3;</code>
     */
    SocketGameProtocol.ReturnCode getReturnCode();

    /**
     * <code>.google.protobuf.Any data = 4;</code>
     */
    boolean hasData();
    /**
     * <code>.google.protobuf.Any data = 4;</code>
     */
    com.google.protobuf.Any getData();
    /**
     * <code>.google.protobuf.Any data = 4;</code>
     */
    com.google.protobuf.AnyOrBuilder getDataOrBuilder();
  }
  /**
   * <pre>
   *交互包
   * </pre>
   *
   * Protobuf type {@code MainPack}
   */
  public  static final class MainPack extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:MainPack)
      MainPackOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use MainPack.newBuilder() to construct.
    private MainPack(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private MainPack() {
      requestCode_ = 0;
      actionCode_ = 0;
      returnCode_ = 0;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private MainPack(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {
              int rawValue = input.readEnum();

              requestCode_ = rawValue;
              break;
            }
            case 16: {
              int rawValue = input.readEnum();

              actionCode_ = rawValue;
              break;
            }
            case 24: {
              int rawValue = input.readEnum();

              returnCode_ = rawValue;
              break;
            }
            case 34: {
              com.google.protobuf.Any.Builder subBuilder = null;
              if (data_ != null) {
                subBuilder = data_.toBuilder();
              }
              data_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(data_);
                data_ = subBuilder.buildPartial();
              }

              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return SocketGameProtocol.internal_static_MainPack_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return SocketGameProtocol.internal_static_MainPack_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              SocketGameProtocol.MainPack.class, SocketGameProtocol.MainPack.Builder.class);
    }

    public static final int REQUESTCODE_FIELD_NUMBER = 1;
    private int requestCode_;
    /**
     * <code>.RequestCode requestCode = 1;</code>
     */
    public int getRequestCodeValue() {
      return requestCode_;
    }
    /**
     * <code>.RequestCode requestCode = 1;</code>
     */
    public SocketGameProtocol.RequestCode getRequestCode() {
      @SuppressWarnings("deprecation")
      SocketGameProtocol.RequestCode result = SocketGameProtocol.RequestCode.valueOf(requestCode_);
      return result == null ? SocketGameProtocol.RequestCode.UNRECOGNIZED : result;
    }

    public static final int ACTIONCODE_FIELD_NUMBER = 2;
    private int actionCode_;
    /**
     * <code>.ActionCode actionCode = 2;</code>
     */
    public int getActionCodeValue() {
      return actionCode_;
    }
    /**
     * <code>.ActionCode actionCode = 2;</code>
     */
    public SocketGameProtocol.ActionCode getActionCode() {
      @SuppressWarnings("deprecation")
      SocketGameProtocol.ActionCode result = SocketGameProtocol.ActionCode.valueOf(actionCode_);
      return result == null ? SocketGameProtocol.ActionCode.UNRECOGNIZED : result;
    }

    public static final int RETURNCODE_FIELD_NUMBER = 3;
    private int returnCode_;
    /**
     * <code>.ReturnCode returnCode = 3;</code>
     */
    public int getReturnCodeValue() {
      return returnCode_;
    }
    /**
     * <code>.ReturnCode returnCode = 3;</code>
     */
    public SocketGameProtocol.ReturnCode getReturnCode() {
      @SuppressWarnings("deprecation")
      SocketGameProtocol.ReturnCode result = SocketGameProtocol.ReturnCode.valueOf(returnCode_);
      return result == null ? SocketGameProtocol.ReturnCode.UNRECOGNIZED : result;
    }

    public static final int DATA_FIELD_NUMBER = 4;
    private com.google.protobuf.Any data_;
    /**
     * <code>.google.protobuf.Any data = 4;</code>
     */
    public boolean hasData() {
      return data_ != null;
    }
    /**
     * <code>.google.protobuf.Any data = 4;</code>
     */
    public com.google.protobuf.Any getData() {
      return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_;
    }
    /**
     * <code>.google.protobuf.Any data = 4;</code>
     */
    public com.google.protobuf.AnyOrBuilder getDataOrBuilder() {
      return getData();
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (requestCode_ != SocketGameProtocol.RequestCode.RequestNone.getNumber()) {
        output.writeEnum(1, requestCode_);
      }
      if (actionCode_ != SocketGameProtocol.ActionCode.ActionNone.getNumber()) {
        output.writeEnum(2, actionCode_);
      }
      if (returnCode_ != SocketGameProtocol.ReturnCode.ReturnNone.getNumber()) {
        output.writeEnum(3, returnCode_);
      }
      if (data_ != null) {
        output.writeMessage(4, getData());
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (requestCode_ != SocketGameProtocol.RequestCode.RequestNone.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(1, requestCode_);
      }
      if (actionCode_ != SocketGameProtocol.ActionCode.ActionNone.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(2, actionCode_);
      }
      if (returnCode_ != SocketGameProtocol.ReturnCode.ReturnNone.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(3, returnCode_);
      }
      if (data_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, getData());
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof SocketGameProtocol.MainPack)) {
        return super.equals(obj);
      }
      SocketGameProtocol.MainPack other = (SocketGameProtocol.MainPack) obj;

      if (requestCode_ != other.requestCode_) return false;
      if (actionCode_ != other.actionCode_) return false;
      if (returnCode_ != other.returnCode_) return false;
      if (hasData() != other.hasData()) return false;
      if (hasData()) {
        if (!getData()
            .equals(other.getData())) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + REQUESTCODE_FIELD_NUMBER;
      hash = (53 * hash) + requestCode_;
      hash = (37 * hash) + ACTIONCODE_FIELD_NUMBER;
      hash = (53 * hash) + actionCode_;
      hash = (37 * hash) + RETURNCODE_FIELD_NUMBER;
      hash = (53 * hash) + returnCode_;
      if (hasData()) {
        hash = (37 * hash) + DATA_FIELD_NUMBER;
        hash = (53 * hash) + getData().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static SocketGameProtocol.MainPack parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static SocketGameProtocol.MainPack parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static SocketGameProtocol.MainPack parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static SocketGameProtocol.MainPack parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static SocketGameProtocol.MainPack parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static SocketGameProtocol.MainPack parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static SocketGameProtocol.MainPack parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static SocketGameProtocol.MainPack parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static SocketGameProtocol.MainPack parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static SocketGameProtocol.MainPack parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static SocketGameProtocol.MainPack parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static SocketGameProtocol.MainPack parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(SocketGameProtocol.MainPack prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * <pre>
     *交互包
     * </pre>
     *
     * Protobuf type {@code MainPack}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:MainPack)
        SocketGameProtocol.MainPackOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return SocketGameProtocol.internal_static_MainPack_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return SocketGameProtocol.internal_static_MainPack_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                SocketGameProtocol.MainPack.class, SocketGameProtocol.MainPack.Builder.class);
      }

      // Construct using SocketGameProtocol.MainPack.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        requestCode_ = 0;

        actionCode_ = 0;

        returnCode_ = 0;

        if (dataBuilder_ == null) {
          data_ = null;
        } else {
          data_ = null;
          dataBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return SocketGameProtocol.internal_static_MainPack_descriptor;
      }

      @java.lang.Override
      public SocketGameProtocol.MainPack getDefaultInstanceForType() {
        return SocketGameProtocol.MainPack.getDefaultInstance();
      }

      @java.lang.Override
      public SocketGameProtocol.MainPack build() {
        SocketGameProtocol.MainPack result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public SocketGameProtocol.MainPack buildPartial() {
        SocketGameProtocol.MainPack result = new SocketGameProtocol.MainPack(this);
        result.requestCode_ = requestCode_;
        result.actionCode_ = actionCode_;
        result.returnCode_ = returnCode_;
        if (dataBuilder_ == null) {
          result.data_ = data_;
        } else {
          result.data_ = dataBuilder_.build();
        }
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof SocketGameProtocol.MainPack) {
          return mergeFrom((SocketGameProtocol.MainPack)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(SocketGameProtocol.MainPack other) {
        if (other == SocketGameProtocol.MainPack.getDefaultInstance()) return this;
        if (other.requestCode_ != 0) {
          setRequestCodeValue(other.getRequestCodeValue());
        }
        if (other.actionCode_ != 0) {
          setActionCodeValue(other.getActionCodeValue());
        }
        if (other.returnCode_ != 0) {
          setReturnCodeValue(other.getReturnCodeValue());
        }
        if (other.hasData()) {
          mergeData(other.getData());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        SocketGameProtocol.MainPack parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (SocketGameProtocol.MainPack) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int requestCode_ = 0;
      /**
       * <code>.RequestCode requestCode = 1;</code>
       */
      public int getRequestCodeValue() {
        return requestCode_;
      }
      /**
       * <code>.RequestCode requestCode = 1;</code>
       */
      public Builder setRequestCodeValue(int value) {
        requestCode_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>.RequestCode requestCode = 1;</code>
       */
      public SocketGameProtocol.RequestCode getRequestCode() {
        @SuppressWarnings("deprecation")
        SocketGameProtocol.RequestCode result = SocketGameProtocol.RequestCode.valueOf(requestCode_);
        return result == null ? SocketGameProtocol.RequestCode.UNRECOGNIZED : result;
      }
      /**
       * <code>.RequestCode requestCode = 1;</code>
       */
      public Builder setRequestCode(SocketGameProtocol.RequestCode value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        requestCode_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <code>.RequestCode requestCode = 1;</code>
       */
      public Builder clearRequestCode() {
        
        requestCode_ = 0;
        onChanged();
        return this;
      }

      private int actionCode_ = 0;
      /**
       * <code>.ActionCode actionCode = 2;</code>
       */
      public int getActionCodeValue() {
        return actionCode_;
      }
      /**
       * <code>.ActionCode actionCode = 2;</code>
       */
      public Builder setActionCodeValue(int value) {
        actionCode_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>.ActionCode actionCode = 2;</code>
       */
      public SocketGameProtocol.ActionCode getActionCode() {
        @SuppressWarnings("deprecation")
        SocketGameProtocol.ActionCode result = SocketGameProtocol.ActionCode.valueOf(actionCode_);
        return result == null ? SocketGameProtocol.ActionCode.UNRECOGNIZED : result;
      }
      /**
       * <code>.ActionCode actionCode = 2;</code>
       */
      public Builder setActionCode(SocketGameProtocol.ActionCode value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        actionCode_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <code>.ActionCode actionCode = 2;</code>
       */
      public Builder clearActionCode() {
        
        actionCode_ = 0;
        onChanged();
        return this;
      }

      private int returnCode_ = 0;
      /**
       * <code>.ReturnCode returnCode = 3;</code>
       */
      public int getReturnCodeValue() {
        return returnCode_;
      }
      /**
       * <code>.ReturnCode returnCode = 3;</code>
       */
      public Builder setReturnCodeValue(int value) {
        returnCode_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>.ReturnCode returnCode = 3;</code>
       */
      public SocketGameProtocol.ReturnCode getReturnCode() {
        @SuppressWarnings("deprecation")
        SocketGameProtocol.ReturnCode result = SocketGameProtocol.ReturnCode.valueOf(returnCode_);
        return result == null ? SocketGameProtocol.ReturnCode.UNRECOGNIZED : result;
      }
      /**
       * <code>.ReturnCode returnCode = 3;</code>
       */
      public Builder setReturnCode(SocketGameProtocol.ReturnCode value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        returnCode_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <code>.ReturnCode returnCode = 3;</code>
       */
      public Builder clearReturnCode() {
        
        returnCode_ = 0;
        onChanged();
        return this;
      }

      private com.google.protobuf.Any data_;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_;
      /**
       * <code>.google.protobuf.Any data = 4;</code>
       */
      public boolean hasData() {
        return dataBuilder_ != null || data_ != null;
      }
      /**
       * <code>.google.protobuf.Any data = 4;</code>
       */
      public com.google.protobuf.Any getData() {
        if (dataBuilder_ == null) {
          return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_;
        } else {
          return dataBuilder_.getMessage();
        }
      }
      /**
       * <code>.google.protobuf.Any data = 4;</code>
       */
      public Builder setData(com.google.protobuf.Any value) {
        if (dataBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          data_ = value;
          onChanged();
        } else {
          dataBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.google.protobuf.Any data = 4;</code>
       */
      public Builder setData(
          com.google.protobuf.Any.Builder builderForValue) {
        if (dataBuilder_ == null) {
          data_ = builderForValue.build();
          onChanged();
        } else {
          dataBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.google.protobuf.Any data = 4;</code>
       */
      public Builder mergeData(com.google.protobuf.Any value) {
        if (dataBuilder_ == null) {
          if (data_ != null) {
            data_ =
              com.google.protobuf.Any.newBuilder(data_).mergeFrom(value).buildPartial();
          } else {
            data_ = value;
          }
          onChanged();
        } else {
          dataBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.google.protobuf.Any data = 4;</code>
       */
      public Builder clearData() {
        if (dataBuilder_ == null) {
          data_ = null;
          onChanged();
        } else {
          data_ = null;
          dataBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.google.protobuf.Any data = 4;</code>
       */
      public com.google.protobuf.Any.Builder getDataBuilder() {
        
        onChanged();
        return getDataFieldBuilder().getBuilder();
      }
      /**
       * <code>.google.protobuf.Any data = 4;</code>
       */
      public com.google.protobuf.AnyOrBuilder getDataOrBuilder() {
        if (dataBuilder_ != null) {
          return dataBuilder_.getMessageOrBuilder();
        } else {
          return data_ == null ?
              com.google.protobuf.Any.getDefaultInstance() : data_;
        }
      }
      /**
       * <code>.google.protobuf.Any data = 4;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> 
          getDataFieldBuilder() {
        if (dataBuilder_ == null) {
          dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
                  getData(),
                  getParentForChildren(),
                  isClean());
          data_ = null;
        }
        return dataBuilder_;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:MainPack)
    }

    // @@protoc_insertion_point(class_scope:MainPack)
    private static final SocketGameProtocol.MainPack DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new SocketGameProtocol.MainPack();
    }

    public static SocketGameProtocol.MainPack getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<MainPack>
        PARSER = new com.google.protobuf.AbstractParser<MainPack>() {
      @java.lang.Override
      public MainPack parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new MainPack(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<MainPack> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<MainPack> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public SocketGameProtocol.MainPack getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface LoginPackOrBuilder extends
      // @@protoc_insertion_point(interface_extends:LoginPack)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     *用户名
     * </pre>
     *
     * <code>string username = 1;</code>
     */
    java.lang.String getUsername();
    /**
     * <pre>
     *用户名
     * </pre>
     *
     * <code>string username = 1;</code>
     */
    com.google.protobuf.ByteString
        getUsernameBytes();

    /**
     * <pre>
     *密码
     * </pre>
     *
     * <code>string password = 2;</code>
     */
    java.lang.String getPassword();
    /**
     * <pre>
     *密码
     * </pre>
     *
     * <code>string password = 2;</code>
     */
    com.google.protobuf.ByteString
        getPasswordBytes();
  }
  /**
   * <pre>
   *登陆包
   * </pre>
   *
   * Protobuf type {@code LoginPack}
   */
  public  static final class LoginPack extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:LoginPack)
      LoginPackOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use LoginPack.newBuilder() to construct.
    private LoginPack(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private LoginPack() {
      username_ = "";
      password_ = "";
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private LoginPack(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              java.lang.String s = input.readStringRequireUtf8();

              username_ = s;
              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();

              password_ = s;
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return SocketGameProtocol.internal_static_LoginPack_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return SocketGameProtocol.internal_static_LoginPack_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              SocketGameProtocol.LoginPack.class, SocketGameProtocol.LoginPack.Builder.class);
    }

    public static final int USERNAME_FIELD_NUMBER = 1;
    private volatile java.lang.Object username_;
    /**
     * <pre>
     *用户名
     * </pre>
     *
     * <code>string username = 1;</code>
     */
    public java.lang.String getUsername() {
      java.lang.Object ref = username_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        username_ = s;
        return s;
      }
    }
    /**
     * <pre>
     *用户名
     * </pre>
     *
     * <code>string username = 1;</code>
     */
    public com.google.protobuf.ByteString
        getUsernameBytes() {
      java.lang.Object ref = username_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        username_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int PASSWORD_FIELD_NUMBER = 2;
    private volatile java.lang.Object password_;
    /**
     * <pre>
     *密码
     * </pre>
     *
     * <code>string password = 2;</code>
     */
    public java.lang.String getPassword() {
      java.lang.Object ref = password_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        password_ = s;
        return s;
      }
    }
    /**
     * <pre>
     *密码
     * </pre>
     *
     * <code>string password = 2;</code>
     */
    public com.google.protobuf.ByteString
        getPasswordBytes() {
      java.lang.Object ref = password_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        password_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (!getUsernameBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_);
      }
      if (!getPasswordBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!getUsernameBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, username_);
      }
      if (!getPasswordBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof SocketGameProtocol.LoginPack)) {
        return super.equals(obj);
      }
      SocketGameProtocol.LoginPack other = (SocketGameProtocol.LoginPack) obj;

      if (!getUsername()
          .equals(other.getUsername())) return false;
      if (!getPassword()
          .equals(other.getPassword())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + USERNAME_FIELD_NUMBER;
      hash = (53 * hash) + getUsername().hashCode();
      hash = (37 * hash) + PASSWORD_FIELD_NUMBER;
      hash = (53 * hash) + getPassword().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static SocketGameProtocol.LoginPack parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static SocketGameProtocol.LoginPack parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static SocketGameProtocol.LoginPack parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static SocketGameProtocol.LoginPack parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static SocketGameProtocol.LoginPack parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static SocketGameProtocol.LoginPack parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static SocketGameProtocol.LoginPack parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static SocketGameProtocol.LoginPack parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static SocketGameProtocol.LoginPack parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static SocketGameProtocol.LoginPack parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static SocketGameProtocol.LoginPack parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static SocketGameProtocol.LoginPack parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(SocketGameProtocol.LoginPack prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * <pre>
     *登陆包
     * </pre>
     *
     * Protobuf type {@code LoginPack}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:LoginPack)
        SocketGameProtocol.LoginPackOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return SocketGameProtocol.internal_static_LoginPack_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return SocketGameProtocol.internal_static_LoginPack_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                SocketGameProtocol.LoginPack.class, SocketGameProtocol.LoginPack.Builder.class);
      }

      // Construct using SocketGameProtocol.LoginPack.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        username_ = "";

        password_ = "";

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return SocketGameProtocol.internal_static_LoginPack_descriptor;
      }

      @java.lang.Override
      public SocketGameProtocol.LoginPack getDefaultInstanceForType() {
        return SocketGameProtocol.LoginPack.getDefaultInstance();
      }

      @java.lang.Override
      public SocketGameProtocol.LoginPack build() {
        SocketGameProtocol.LoginPack result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public SocketGameProtocol.LoginPack buildPartial() {
        SocketGameProtocol.LoginPack result = new SocketGameProtocol.LoginPack(this);
        result.username_ = username_;
        result.password_ = password_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof SocketGameProtocol.LoginPack) {
          return mergeFrom((SocketGameProtocol.LoginPack)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(SocketGameProtocol.LoginPack other) {
        if (other == SocketGameProtocol.LoginPack.getDefaultInstance()) return this;
        if (!other.getUsername().isEmpty()) {
          username_ = other.username_;
          onChanged();
        }
        if (!other.getPassword().isEmpty()) {
          password_ = other.password_;
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        SocketGameProtocol.LoginPack parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (SocketGameProtocol.LoginPack) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object username_ = "";
      /**
       * <pre>
       *用户名
       * </pre>
       *
       * <code>string username = 1;</code>
       */
      public java.lang.String getUsername() {
        java.lang.Object ref = username_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          username_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       *用户名
       * </pre>
       *
       * <code>string username = 1;</code>
       */
      public com.google.protobuf.ByteString
          getUsernameBytes() {
        java.lang.Object ref = username_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          username_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       *用户名
       * </pre>
       *
       * <code>string username = 1;</code>
       */
      public Builder setUsername(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        username_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *用户名
       * </pre>
       *
       * <code>string username = 1;</code>
       */
      public Builder clearUsername() {
        
        username_ = getDefaultInstance().getUsername();
        onChanged();
        return this;
      }
      /**
       * <pre>
       *用户名
       * </pre>
       *
       * <code>string username = 1;</code>
       */
      public Builder setUsernameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        username_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object password_ = "";
      /**
       * <pre>
       *密码
       * </pre>
       *
       * <code>string password = 2;</code>
       */
      public java.lang.String getPassword() {
        java.lang.Object ref = password_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          password_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       *密码
       * </pre>
       *
       * <code>string password = 2;</code>
       */
      public com.google.protobuf.ByteString
          getPasswordBytes() {
        java.lang.Object ref = password_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          password_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       *密码
       * </pre>
       *
       * <code>string password = 2;</code>
       */
      public Builder setPassword(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        password_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *密码
       * </pre>
       *
       * <code>string password = 2;</code>
       */
      public Builder clearPassword() {
        
        password_ = getDefaultInstance().getPassword();
        onChanged();
        return this;
      }
      /**
       * <pre>
       *密码
       * </pre>
       *
       * <code>string password = 2;</code>
       */
      public Builder setPasswordBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        password_ = value;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:LoginPack)
    }

    // @@protoc_insertion_point(class_scope:LoginPack)
    private static final SocketGameProtocol.LoginPack DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new SocketGameProtocol.LoginPack();
    }

    public static SocketGameProtocol.LoginPack getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<LoginPack>
        PARSER = new com.google.protobuf.AbstractParser<LoginPack>() {
      @java.lang.Override
      public LoginPack parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new LoginPack(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<LoginPack> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<LoginPack> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public SocketGameProtocol.LoginPack getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface BodyStrongMessageOrBuilder extends
      // @@protoc_insertion_point(interface_extends:BodyStrongMessage)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.HeartBeat heartBeat = 1;</code>
     */
    int getHeartBeatValue();
    /**
     * <code>.HeartBeat heartBeat = 1;</code>
     */
    SocketGameProtocol.HeartBeat getHeartBeat();
  }
  /**
   * <pre>
   *心跳包
   * </pre>
   *
   * Protobuf type {@code BodyStrongMessage}
   */
  public  static final class BodyStrongMessage extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:BodyStrongMessage)
      BodyStrongMessageOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BodyStrongMessage.newBuilder() to construct.
    private BodyStrongMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private BodyStrongMessage() {
      heartBeat_ = 0;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private BodyStrongMessage(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {
              int rawValue = input.readEnum();

              heartBeat_ = rawValue;
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return SocketGameProtocol.internal_static_BodyStrongMessage_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return SocketGameProtocol.internal_static_BodyStrongMessage_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              SocketGameProtocol.BodyStrongMessage.class, SocketGameProtocol.BodyStrongMessage.Builder.class);
    }

    public static final int HEARTBEAT_FIELD_NUMBER = 1;
    private int heartBeat_;
    /**
     * <code>.HeartBeat heartBeat = 1;</code>
     */
    public int getHeartBeatValue() {
      return heartBeat_;
    }
    /**
     * <code>.HeartBeat heartBeat = 1;</code>
     */
    public SocketGameProtocol.HeartBeat getHeartBeat() {
      @SuppressWarnings("deprecation")
      SocketGameProtocol.HeartBeat result = SocketGameProtocol.HeartBeat.valueOf(heartBeat_);
      return result == null ? SocketGameProtocol.HeartBeat.UNRECOGNIZED : result;
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (heartBeat_ != SocketGameProtocol.HeartBeat.Alive.getNumber()) {
        output.writeEnum(1, heartBeat_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (heartBeat_ != SocketGameProtocol.HeartBeat.Alive.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(1, heartBeat_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof SocketGameProtocol.BodyStrongMessage)) {
        return super.equals(obj);
      }
      SocketGameProtocol.BodyStrongMessage other = (SocketGameProtocol.BodyStrongMessage) obj;

      if (heartBeat_ != other.heartBeat_) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + HEARTBEAT_FIELD_NUMBER;
      hash = (53 * hash) + heartBeat_;
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static SocketGameProtocol.BodyStrongMessage parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static SocketGameProtocol.BodyStrongMessage parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static SocketGameProtocol.BodyStrongMessage parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static SocketGameProtocol.BodyStrongMessage parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static SocketGameProtocol.BodyStrongMessage parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static SocketGameProtocol.BodyStrongMessage parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static SocketGameProtocol.BodyStrongMessage parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static SocketGameProtocol.BodyStrongMessage parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static SocketGameProtocol.BodyStrongMessage parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static SocketGameProtocol.BodyStrongMessage parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static SocketGameProtocol.BodyStrongMessage parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static SocketGameProtocol.BodyStrongMessage parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(SocketGameProtocol.BodyStrongMessage prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * <pre>
     *心跳包
     * </pre>
     *
     * Protobuf type {@code BodyStrongMessage}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:BodyStrongMessage)
        SocketGameProtocol.BodyStrongMessageOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return SocketGameProtocol.internal_static_BodyStrongMessage_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return SocketGameProtocol.internal_static_BodyStrongMessage_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                SocketGameProtocol.BodyStrongMessage.class, SocketGameProtocol.BodyStrongMessage.Builder.class);
      }

      // Construct using SocketGameProtocol.BodyStrongMessage.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        heartBeat_ = 0;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return SocketGameProtocol.internal_static_BodyStrongMessage_descriptor;
      }

      @java.lang.Override
      public SocketGameProtocol.BodyStrongMessage getDefaultInstanceForType() {
        return SocketGameProtocol.BodyStrongMessage.getDefaultInstance();
      }

      @java.lang.Override
      public SocketGameProtocol.BodyStrongMessage build() {
        SocketGameProtocol.BodyStrongMessage result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public SocketGameProtocol.BodyStrongMessage buildPartial() {
        SocketGameProtocol.BodyStrongMessage result = new SocketGameProtocol.BodyStrongMessage(this);
        result.heartBeat_ = heartBeat_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof SocketGameProtocol.BodyStrongMessage) {
          return mergeFrom((SocketGameProtocol.BodyStrongMessage)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(SocketGameProtocol.BodyStrongMessage other) {
        if (other == SocketGameProtocol.BodyStrongMessage.getDefaultInstance()) return this;
        if (other.heartBeat_ != 0) {
          setHeartBeatValue(other.getHeartBeatValue());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        SocketGameProtocol.BodyStrongMessage parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (SocketGameProtocol.BodyStrongMessage) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int heartBeat_ = 0;
      /**
       * <code>.HeartBeat heartBeat = 1;</code>
       */
      public int getHeartBeatValue() {
        return heartBeat_;
      }
      /**
       * <code>.HeartBeat heartBeat = 1;</code>
       */
      public Builder setHeartBeatValue(int value) {
        heartBeat_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>.HeartBeat heartBeat = 1;</code>
       */
      public SocketGameProtocol.HeartBeat getHeartBeat() {
        @SuppressWarnings("deprecation")
        SocketGameProtocol.HeartBeat result = SocketGameProtocol.HeartBeat.valueOf(heartBeat_);
        return result == null ? SocketGameProtocol.HeartBeat.UNRECOGNIZED : result;
      }
      /**
       * <code>.HeartBeat heartBeat = 1;</code>
       */
      public Builder setHeartBeat(SocketGameProtocol.HeartBeat value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        heartBeat_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <code>.HeartBeat heartBeat = 1;</code>
       */
      public Builder clearHeartBeat() {
        
        heartBeat_ = 0;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:BodyStrongMessage)
    }

    // @@protoc_insertion_point(class_scope:BodyStrongMessage)
    private static final SocketGameProtocol.BodyStrongMessage DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new SocketGameProtocol.BodyStrongMessage();
    }

    public static SocketGameProtocol.BodyStrongMessage getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<BodyStrongMessage>
        PARSER = new com.google.protobuf.AbstractParser<BodyStrongMessage>() {
      @java.lang.Override
      public BodyStrongMessage parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new BodyStrongMessage(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<BodyStrongMessage> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<BodyStrongMessage> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public SocketGameProtocol.BodyStrongMessage getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_MainPack_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_MainPack_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_LoginPack_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_LoginPack_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_BodyStrongMessage_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_BodyStrongMessage_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\030SocketGameProtocol.proto\032\031google/proto" +
      "buf/any.proto\"\223\001\n\010MainPack\022!\n\013requestCod" +
      "e\030\001 \001(\0162\014.RequestCode\022\037\n\nactionCode\030\002 \001(" +
      "\0162\013.ActionCode\022\037\n\nreturnCode\030\003 \001(\0162\013.Ret" +
      "urnCode\022\"\n\004data\030\004 \001(\0132\024.google.protobuf." +
      "Any\"/\n\tLoginPack\022\020\n\010username\030\001 \001(\t\022\020\n\010pa" +
      "ssword\030\002 \001(\t\"2\n\021BodyStrongMessage\022\035\n\thea" +
      "rtBeat\030\001 \001(\0162\n.HeartBeat*3\n\013RequestCode\022" +
      "\017\n\013RequestNone\020\000\022\010\n\004User\020\001\022\t\n\005State\020\002*2\n" +
      "\nActionCode\022\016\n\nActionNone\020\000\022\t\n\005Logon\020\001\022\t" +
      "\n\005Login\020\002*3\n\nReturnCode\022\016\n\nReturnNone\020\000\022" +
      "\013\n\007Succeed\020\001\022\010\n\004Fail\020\002*!\n\tHeartBeat\022\t\n\005A" +
      "live\020\000\022\t\n\005Death\020\001b\006proto3"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          com.google.protobuf.AnyProto.getDescriptor(),
        }, assigner);
    internal_static_MainPack_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_MainPack_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_MainPack_descriptor,
        new java.lang.String[] { "RequestCode", "ActionCode", "ReturnCode", "Data", });
    internal_static_LoginPack_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_LoginPack_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_LoginPack_descriptor,
        new java.lang.String[] { "Username", "Password", });
    internal_static_BodyStrongMessage_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_BodyStrongMessage_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_BodyStrongMessage_descriptor,
        new java.lang.String[] { "HeartBeat", });
    com.google.protobuf.AnyProto.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
